﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SMARTMobile.Common;
using SmartMobile.Data;
using SMARTMobile.Services.SMARTMobileServiceReference;
using SMARTMobile.ViewModels;

namespace SMARTMobile.Views
{
    public partial class DongBoPage
    {
        public DongBoPage()
        {
            InitializeComponent();
            this.DataContext = new DongBoPageViewModel();
        }

        private void UpdateCheckBox_OnChecked(object sender, RoutedEventArgs e)
        {
            (this.DataContext as DongBoPageViewModel).IsCheckedInformation = true;
        }

        private void UpdateCheckBox_OnUnchecked(object sender, RoutedEventArgs e)
        {
            (this.DataContext as DongBoPageViewModel).IsCheckedInformation = false;
        }
    }
}